import React, { useState } from 'react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import Article from './pages/Article'

import Login from './pages/Login/Index'
import Msg from './pages/Msg'


function App() {
  const [count, setCount] = useState(0)

  return (
    <div className="App">
      <Router>
        <Route path="/login" component={ Login }></Route>
        <Route path="/article" component={ Article }></Route>
        <Route path="/msg" component={ Msg }></Route>
      </Router>
    </div>
  )
}

export default App
